import Layout from '@/components/layout/Index.vue'
import Home from '../views/home/Index.vue'
import UserPage from '@/views/user/Index.vue'
import Audits from '@/views/audits/Index.vue'
import AuditsAdd from '@/views/audits/Add.vue'
import News from '@/views/news/Index.vue'
import NewsAdd from '@/views/news/NewsAdd.vue'
import NewsPreview from '@/views/news/Preview.vue'
import NewsDraft from '@/views/news/Draft.vue'
import NewsCategory from '@/views/news/Category.vue'
import Unpublishs from '@/views/publishs/Unpublishs.vue'
import Publishs from '@/views/publishs/Publishs.vue'
import Sunset from '@/views/publishs/Sunset.vue'
import Rights from '@/views/rights/Rights.vue'
import RightsAdd from '@/views/rights/RightsAdd.vue'
import UserAdd from '@/views/user/Add.vue'
import RolesAdd from '@/views/rights/RoleAdd.vue'
import Roles from '@/views/rights/Role.vue'

import { House, User } from '@element-plus/icons-vue'

export const localMenu = [
   // {
   //    path: '/',
   //    redirect: '/home',
   //    component: Layout,
   //    meta: {
   //       title: '首页',

   //    },
   //    children: [
         {
            icon: House,

            path: '/home',
            component: Home,
            meta: {
               title: '首页',

            }

         },
         {
            path: '/user-manage',
            component: UserPage,
            redirect: '/user-manage/list',
            icon: User,
            meta: {
               title: '用户管理',

            },
            children: [
               {
                  path: 'list',
                  component: UserPage,
                  icon: User,
                  meta: {
                     title: '用户列表',

                  },


               },
               {
                  path: 'add',
                  component: UserAdd,
                  icon: User,
                  meta: {
                     title: '用户新增',

                  },


               },
               {
                  path: 'delete',
                  component: UserAdd,
                  icon: User,
                  meta: {
                     title: '用户删除',

                  },


               },
               {
                  path: 'update',
                  component: UserAdd,
                  icon: User,
                  meta: {
                     title: '用户修改',

                  },


               },
            ]


         },

         {
            path: '/right-manage',
            component: Rights,
            icon: User,
            redirect: '/right-manage/right/list',

            meta: {
               title: '权限管理',

            },
            children: [
               {
                  path: 'right/list',
                  component: Rights,
                  icon: User,
                  meta: {
                     title: '权限列表',

                  },

                  children: [

                     {
                        path: 'delete',
                        component: RightsAdd,
                        icon: User,
                        meta: {
                           title: '权限删除',

                        },


                     },
                     {
                        path: 'update',
                        component: RightsAdd,
                        icon: User,
                        meta: {
                           title: '权限修改',

                        },


                     },
                  ]

               },
               {
                  path: 'role/list',
                  component: Roles,
                  icon: User,
                  meta: {
                     title: '角色列表',

                  },
                  children: [

                     {
                        path: 'delete',
                        component: RolesAdd,
                        icon: User,
                        meta: {
                           title: '角色删除',

                        },


                     },
                     {
                        path: 'update',
                        component: RolesAdd,
                        icon: User,
                        meta: {
                           title: '角色修改',

                        },


                     },
                  ]

               },
               {
                  path: 'delete',
                  component: UserAdd,
                  icon: User,
                  meta: {
                     title: '用户删除',

                  },


               },
               {
                  path: 'update',
                  component: UserAdd,
                  icon: User,
                  meta: {
                     title: '用户修改',

                  },


               },
            ]

         },
         {
            path: '/news-manage',
            component: News,
            redirect: '/news-manage/list',

            icon: User,
            meta: {
               title: '新闻管理',

            },
            children: [

               {
                  path: 'list',
                  component: News,
                  icon: User,
                  meta: {
                     title: '新闻列表',

                  },


               },
               {
                  path: 'add',
                  component: NewsAdd,
                  icon: User,
                  meta: {
                     title: '撰写新闻',

                  },


               },
               {
                  path: 'update',
                  component: NewsAdd,
                  icon: User,
                  meta: {
                     title: '新闻更新',

                  },


               },
               {
                  path: 'preview',
                  component: NewsPreview,
                  icon: User,
                  meta: {
                     title: '新闻预览',

                  },


               },
               {
                  path: 'draft',
                  component: NewsDraft,
                  icon: User,
                  meta: {
                     title: '草稿箱',

                  },


               },
               {
                  path: 'category',
                  component: NewsCategory,
                  icon: User,
                  meta: {
                     title: '新闻分类',

                  },


               },
            ]

         },
         {
            path: '/audit-manage',
            component: Audits,
            redirect: '/audit-manage/list',

            icon: User,
            meta: {
               title: '审核管理',

            },
            children: [

               {
                  path: 'list',
                  component: Audits,
                  icon: User,
                  meta: {
                     title: '审核列表',

                  },


               },
               {
                  path: 'add',
                  component: AuditsAdd,
                  icon: User,
                  meta: {
                     title: '审核新闻',

                  },


               },]
         },
         {
            path: '/publishs-manage',
            component: Unpublishs,
            redirect: '/publishs-manage/unpublish',

            icon: User,
            meta: {
               title: '发布管理',

            },
            children: [

               {
                  path: 'unpublish',
                  component: Unpublishs,
                  icon: User,
                  meta: {
                     title: '待发布',

                  },


               },
               {
                  path: 'publish',
                  component: Publishs,
                  icon: User,
                  meta: {
                     title: '已发布',

                  },


               }, {
                  path: 'sunset',
                  component: Sunset,
                  icon: User,
                  meta: {
                     title: '已下线',

                  },


               },]

         },
   //    ]

   // },


]